import request from "@/utils/request";

export interface Iword {
  title: string;
  id: number;
}

export interface IWordDetail extends Iword {
  content: string;
}

export function getList(): Promise<IResponseWrap<Iword[]>> {
  return request.get("/h5/star/word/list");
}

export function detail(id: number): Promise<IResponseWrap<IWordDetail>> {
  return request.get(`/h5/star/word/${id}`);
}
